package com.simple.gateway.center.domian.application.converter;

import com.simple.gateway.center.basedata.po.ApplicationSystem;
import com.simple.gateway.center.domian.application.bo.ApplicationSystemBO;
import com.simple.gateway.center.domian.application.dto.ApplicationSystemDTO;
import com.simple.gateway.center.domian.application.param.ApplicationSystemParam;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 项目: simple-gateway-core
 * <p>
 * 功能描述:
 *
 * @author: WuChengXing
 * @create: 2023-08-07 17:17
 **/
@Mapper
public interface ApplicationSystemConverter {

    ApplicationSystemConverter INSTANCE = Mappers.getMapper(ApplicationSystemConverter.class);

    /**
     * bo2Dto
     *
     * @param bo
     * @return
     */
    ApplicationSystemDTO bo2Dto(ApplicationSystemBO bo);

    /**
     * bo2dto
     *
     * @param bo
     * @return
     */
    ApplicationSystem bo2Do(ApplicationSystemBO bo);

    /**
     * param2Bo
     *
     * @param param
     * @return
     */
    ApplicationSystemBO param2Bo(ApplicationSystemParam param);

}
